package com.zx.dao.dj;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zx.model.dj.StockBranch;
import com.zx.model.dj.StockMaster;

public interface StockBranchMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StockBranch record);

    int insertSelective(StockBranch record);

    StockBranch selectByPrimaryKey(Long id);

    List<StockBranch> selectBySelective(StockBranch record);
    
    int updateByPrimaryKeySelective(StockBranch record);

    int updateByPrimaryKey(StockBranch record);
    
    List<StockMaster> selStockBranch(@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize, @Param("orderType")int orderType);
    List<StockMaster> selStockBranchCondition(@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize, @Param("orderType")int orderType
            ,@Param("sbrand")String sbrand,@Param("smodel")String smodel,@Param("scolor")String scolor,@Param("ssize")String ssize
            ,@Param("shopname")String shopname,@Param("remindCount")String remindCount);
    int selStockBranchCount(@Param("sbrand")String sbrand,@Param("smodel")String smodel,@Param("scolor")String scolor,@Param("ssize")String ssize
            ,@Param("shopname")String shopname,@Param("remindCount")String remindCount);
}